﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Parentmasterpage .master" CodeBehind="Details.aspx.vb" Inherits="WebApplicationcruises.Details" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style14
        {
            width: 100%;
        }
    </style>
    <link href="CSS.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table class="style14">
        <tr>
            <td>
                &nbsp;&nbsp;</td>
        </tr>
        <tr>
            <td>
&nbsp;&nbsp;
                <asp:FormView ID="FormView1" runat="server" DataSourceID="SqlDataSource1" 
                    Width="367px">
                    <EditItemTemplate>
                        CTitle:
                        <asp:TextBox ID="CTitleTextBox" runat="server" Text='<%# Bind("CTitle") %>' />
                        <br />
                        CDate:
                        <asp:TextBox ID="CDateTextBox" runat="server" Text='<%# Bind("CDate") %>' />
                        <br />
                        CTime:
                        <asp:TextBox ID="CTimeTextBox" runat="server" Text='<%# Bind("CTime") %>' />
                        <br />
                        CSeason:
                        <asp:TextBox ID="CSeasonTextBox" runat="server" Text='<%# Bind("CSeason") %>' />
                        <br />
                        CCountry:
                        <asp:TextBox ID="CCountryTextBox" runat="server" 
                            Text='<%# Bind("CCountry") %>' />
                        <br />
                        CCity:
                        <asp:TextBox ID="CCityTextBox" runat="server" Text='<%# Bind("CCity") %>' />
                        <br />
                        CPlace:
                        <asp:TextBox ID="CPlaceTextBox" runat="server" Text='<%# Bind("CPlace") %>' />
                        <br />
                        CCoste:
                        <asp:TextBox ID="CCosteTextBox" runat="server" Text='<%# Bind("CCoste") %>' />
                        <br />
                        CDescription:
                        <asp:TextBox ID="CDescriptionTextBox" runat="server" 
                            Text='<%# Bind("CDescription") %>' />
                        <br />
                        <asp:LinkButton ID="UpdateButton" runat="server" CausesValidation="True" 
                            CommandName="Update" Text="Update" />
                        &nbsp;<asp:LinkButton ID="UpdateCancelButton" runat="server" 
                            CausesValidation="False" CommandName="Cancel" Text="Cancel" />
                    </EditItemTemplate>
                    <InsertItemTemplate>
                        CTitle:
                        <asp:TextBox ID="CTitleTextBox0" runat="server" Text='<%# Bind("CTitle") %>' />
                        <br />
                        CDate:
                        <asp:TextBox ID="CDateTextBox0" runat="server" Text='<%# Bind("CDate") %>' />
                        <br />
                        CTime:
                        <asp:TextBox ID="CTimeTextBox0" runat="server" Text='<%# Bind("CTime") %>' />
                        <br />
                        CSeason:
                        <asp:TextBox ID="CSeasonTextBox0" runat="server" 
                            Text='<%# Bind("CSeason") %>' />
                        <br />
                        CCountry:
                        <asp:TextBox ID="CCountryTextBox0" runat="server" 
                            Text='<%# Bind("CCountry") %>' />
                        <br />
                        CCity:
                        <asp:TextBox ID="CCityTextBox0" runat="server" Text='<%# Bind("CCity") %>' />
                        <br />
                        CPlace:
                        <asp:TextBox ID="CPlaceTextBox0" runat="server" Text='<%# Bind("CPlace") %>' />
                        <br />
                        CCoste:
                        <asp:TextBox ID="CCosteTextBox0" runat="server" Text='<%# Bind("CCoste") %>' />
                        <br />
                        CDescription:
                        <asp:TextBox ID="CDescriptionTextBox0" runat="server" 
                            Text='<%# Bind("CDescription") %>' />
                        <br />
                        <asp:LinkButton ID="InsertButton" runat="server" CausesValidation="True" 
                            CommandName="Insert" Text="Insert" />
                        &nbsp;<asp:LinkButton ID="InsertCancelButton" runat="server" 
                            CausesValidation="False" CommandName="Cancel" Text="Cancel" />
                    </InsertItemTemplate>
                    <ItemTemplate>
                        <table class="style14">
                            <tr>
                                <td>
                                    Title</td>
                                <td>
                                    <asp:Label ID="CTitleLabel" runat="server" Text='<%# Bind("CTitle") %>' />
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Date</td>
                                <td>
                                    <asp:Label ID="CDateLabel" runat="server" 
                                        Text='<%# Bind("CDate", "{0:d}") %>' />
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Time</td>
                                <td>
                                    <asp:Label ID="CTimeLabel" runat="server" 
                                        Text='<%# Bind("CTime", "{0:t}") %>' />
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Season</td>
                                <td>
                                    <asp:Label ID="CSeasonLabel" runat="server" Text='<%# Bind("CSeason") %>' />
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Country</td>
                                <td>
                                    <asp:Label ID="CCountryLabel" runat="server" Text='<%# Bind("CCountry") %>' />
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    City</td>
                                <td>
                                    <asp:Label ID="CCityLabel" runat="server" Text='<%# Bind("CCity") %>' />
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Place</td>
                                <td>
                                    <asp:Label ID="CPlaceLabel" runat="server" Text='<%# Bind("CPlace") %>' />
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Coste</td>
                                <td>
                                    <asp:Label ID="CCosteLabel" runat="server" Text='<%# Bind("CCoste") %>' />
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Description</td>
                                <td>
                                    <asp:Label ID="CDescriptionLabel" runat="server" 
                                        Text='<%# Bind("CDescription") %>' />
                                </td>
                            </tr>
                        </table>
                        <br />

                    </ItemTemplate>
                </asp:FormView>
            </td>
        </tr>
    </table>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:ConnectionStringDB %>" 
        ProviderName="<%$ ConnectionStrings:ConnectionStringDB.ProviderName %>" 
        SelectCommand="SELECT [CTitle], [CDate], [CTime], [CSeason], [CCountry], [CCity], [CPlace], [CCoste], [CDescription] FROM [CruisesTable] WHERE ([CId] = ?)">
        <SelectParameters>
            <asp:QueryStringParameter Name="CId" QueryStringField="id" Type="Int32" />
        </SelectParameters>
    </asp:SqlDataSource>
</asp:Content>
